import request from "@/utils/request";

// 查询EduTeacher列表
export function teacherCourseList(teacherId, query, type = "teacherInfo") {
    console.log(query);
    return request({
        url: `/api/v1/edu/${type}/${teacherId}/courseList`,
        method: "get",
        params: query
    });
}

// 添加班级课程
export function addClassCourse(classroomId, data) {
    return request({
        url: `/api/v1/edu/classroomInfo/${classroomId}/course`,
        method: "post",
        data
    });
}

// 学校课程列表
export function schoolCourseList(schoolId, data) {
    return request({
        url: `/api/v1/edu/schoolInfo/${schoolId}/courseList`,
        method: "get",
        data
    });
}
